package com.hgyc.mom.wms.enums;

/**
 * 销售订单类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @date 2025-05-19 14:35:58
 * @version 1.0
 **/
public enum SaleOrderTypeEnum {
    STANDARD("STANDARD", "标准订单"),
    PRE("PRE", "预售订单"),
    TRIAL("TRIAL", "试用订单"),
    SAMPLE("SAMPLE", "样品订单"),
    CONTRACT("CONTRACT", "合同订单")
    ;

    private final String value;
    private final String label;

    SaleOrderTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static SaleOrderTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (SaleOrderTypeEnum item : SaleOrderTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

